home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2001 May
/
SGI Freeware 2001 May - Disc 3.iso
/
dist
/
fw_openssl.idb
/
usr
/
freeware
/
catman
/
p_man
/
cat3
/
SSL_CIPHER_get_name.Z
/
SSL_CIPHER_get_name
Wrap
Text File
|
2001-01-10
|
4KB
|
133 lines
SSSSSSSSLLLL____CCCCIIIIPPPPHHHHEEEERRRR____ggggeeeetttt____nnnnaaaammmmeeee((((3333)))) 11118888////SSSSeeeepppp////2222000000000000 ((((0000....9999....6666)))) SSSSSSSSLLLL____CCCCIIIIPPPPHHHHEEEERRRR____ggggeeeetttt____nnnnaaaammmmeeee((((3333))))
NNNNAAAAMMMMEEEE
SSL_CIPHER_get_name, SSL_CIPHER_get_bits,
SSL_CIPHER_get_version, SSL_CIPHER_description - get
SSL_CIPHER properties
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <openssl/ssl.h>
const char *SSL_CIPHER_get_name(SSL_CIPHER *cipher);
int SSL_CIPHER_get_bits(SSL_CIPHER *cipher, int *alg_bits);
char *SSL_CIPHER_get_version(SSL_CIPHER *cipher);
char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int size);
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_S_S_L__C_I_P_H_E_R__g_e_t__n_a_m_e() returns a pointer to the name of
cccciiiipppphhhheeeerrrr. If the argument is the NULL pointer, a pointer to
the constant value "NONE" is returned.
_S_S_L__C_I_P_H_E_R__g_e_t__b_i_t_s() returns the number of secret bits used
for cccciiiipppphhhheeeerrrr. If aaaallllgggg____bbbbiiiittttssss is not NULL, it contains the number
of bits processed by the chosen algorithm. If cccciiiipppphhhheeeerrrr is
NULL, 0 is returned.
_S_S_L__C_I_P_H_E_R__g_e_t__v_e_r_s_i_o_n() returns the protocol version for
cccciiiipppphhhheeeerrrr, currently "SSLv2", "SSLv3", or "TLSv1". If cccciiiipppphhhheeeerrrr is
NULL, "(NONE)" is returned.
_S_S_L__C_I_P_H_E_R__d_e_s_c_r_i_p_t_i_o_n() returns a textual description of
the cipher used into the buffer bbbbuuuuffff of length lllleeeennnn provided.
lllleeeennnn must be at least 128 bytes, otherwise the string "Buffer
too small" is returned. If bbbbuuuuffff is NULL, a buffer of 128
bytes is allocated using _O_P_E_N_S_S_L__m_a_l_l_o_c(). If the allocation
fails, the string "OPENSSL_malloc Error" is returned.
NNNNOOOOTTTTEEEESSSS
The number of bits processed can be different from the
secret bits. An export cipher like e.g. EXP-RC4-MD5 has only
40 secret bits. The algorithm does use the full 128 bits
(which would be returned for aaaallllgggg____bbbbiiiittttssss), of which however
88bits are fixed. The search space is hence only 40 bits.
BBBBUUUUGGGGSSSS
If _S_S_L__C_I_P_H_E_R__d_e_s_c_r_i_p_t_i_o_n() is called with cccciiiipppphhhheeeerrrr being
NULL, the library crashes.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
See DESCRIPTION
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ssl(3), SSL_get_current_cipher(3), SSL_get_ciphers(3)
Page 1 (printed 11/10/00)
SSSSSSSSLLLL____CCCCIIIIPPPPHHHHEEEERRRR____ggggeeeetttt____nnnnaaaammmmeeee((((3333)))) 11118888////SSSSeeeepppp////2222000000000000 ((((0000....9999....6666)))) SSSSSSSSLLLL____CCCCIIIIPPPPHHHHEEEERRRR____ggggeeeetttt____nnnnaaaammmmeeee((((3333))))
SSL_CIPHER_description - get SSL_CIPHER properties"
Page 2 (printed 11/10/00)